import java.util.Scanner;

public class L0ginSimulation {
    public static void main(String[] args) {
        String arr = "12138";
        Scanner sc = new Scanner(System.in);
        int i = 1;
        System.out.println("你有三次机会");
        for(i = 0;i < 3;i++) {
            System.out.println("请输入");
            String in = sc.nextLine();
            if(in.equals(arr)) {
                System.out.println("输入正确");
                break;
            } else {
                System.out.println("输入错误，你还有" + (3 - (i + 1)) + "次机会");
            }
        }
        sc.close();
    }
}
